package cn.wuweixiang.springbootdemo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * DemoController
 *
 * @author weixiang.wu
 * @date 2018 -08-22 21:05
 */
@RestController
@RequestMapping("/")
public class DemoController {

	/**
	 * Test string.
	 *
	 * @return the string
	 */
	@RequestMapping("test")
	public String test() {
		System.err.println("DemoController.test");
		return "DemoController.test";
	}

	/**
	 * Demo servlet string.
	 *
	 * @return the string
	 */
	@RequestMapping("demoServlet")
	public String demoServlet() {
		System.err.println("demoServlet已经存在于DemoServlet,此接口无效，并且不会被拦截器拦截");
		return "DemoController.demoServlet";
	}
}
